cmake_minimum_required(VERSION 3.10)

project(MyProject)

# 添加编译选项，如果有需要的话
# add_compile_options(-std=c++11)

# 添加可执行文件 rgb2yuv420
add_executable(rgb2yuv420 rgb2yuv420.cpp)
target_link_libraries(rgb2yuv420 PRIVATE X11)

# 添加可执行文件 rgb2yuv444
add_executable(rgb2yuv444 rgb2yuv444.cpp)
target_link_libraries(rgb2yuv444 PRIVATE X11)

# 添加可执行文件 yuv4202rgb
add_executable(yuv4202rgb yuv4202rgb.cpp)
target_link_libraries(yuv4202rgb PRIVATE X11)

# 添加可执行文件 yuv4442rgb
add_executable(yuv4442rgb yuv4442rgb.cpp)
target_link_libraries(yuv4442rgb PRIVATE X11)
